import Axios from './axios'

export function judge(username) {
    return Axios({
        url: '/userinfo/judge',
        params: {
            username
        }
    })
}

export function register(obj) { 
    return Axios({
        url: '/userinfo/register',
        params: {
            username: obj.username,
            password: obj.pass,
            phone: obj.phone
        }
    })
}

export function login(obj) {
    return Axios({
        url: '/userinfo/login',
        params: {
            username: obj.username,
            password: obj.pass,
        }
    })
}
